package com.ajobs.project.aware;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * Description
 *
 * @author weijianxun
 */
@Component
public class EnvAware implements EnvironmentAware {
    @Override
    public void setEnvironment(Environment environment) {
        String name = environment.getProperty("name");
        String SPRING_APPLICATION_JSON = environment.getProperty("SPRING_APPLICATION_JSON");
        // System.out.println(environment);
    }
}
